//
//  main.swift
//  CommandLineTool1
//
//  Created by May on 2025/3/26.
//

import Foundation

/// nagetive: execpt top bit(top bit is 1, means nagetive), other bits reverse by bit, zen plus one
/// reverse by bit, then plus one, can use the top bit
///  int a = 5, int b = (~a + 1) means b == -5
///  n reverse by bit, then plus one == -n

//Base.printBitReversed(i: Int.max)
//Base.printBitReversed(i: Int.min)
//Base.printBitReversed(i: 5)
//print((~5 + 1))
//Base.printBitReversed(i: (~5 + 1))

//_2089_找出数组排序后的目标下标.test()

//Random.test()

//SortTest.SortTest()

